class Pergunta < ActiveRecord::Base
  belongs_to :nivel
  has_many :respostas, :dependent => :destroy
  accepts_nested_attributes_for :respostas
  validates_presence_of :caput, :message => "Campo obrigatorio!"
end
